-- GENERATED SPELL FOR [Shadowhide Assassin] --


function spell0_579(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(2590,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_579', 595, 1)
end

function spell1_579(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_579', 30000, 1)
end

function Sorts_579(pUnit, Event)
local choix_sorts_579 = math.random(0, 1)
if choix_sorts_579 == 0 then
pUnit:RegisterEvent('spell0_579', 1, 1)
end
if choix_sorts_579 == 1 then
pUnit:RegisterEvent('spell1_579', 1, 1)
end
end

function mob579_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_579', math.random(1500, 3000), 1)
end

function mob579_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob579_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob579_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(579, 1, 'mob579_Action')
RegisterUnitEvent(579, 2, 'mob579_Leave')
RegisterUnitEvent(579, 3, 'mob579_Kill')
RegisterUnitEvent(579, 4, 'mob579_Die')
